package com.dzj.fishingcommunity.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 点赞表类，用于表示点赞的基本信息
 */
@Data
@TableName("like_table")
@Schema(description = "点赞表类，用于表示点赞的基本信息")
public class LikeTable {
    /**
     * 点赞ID，主键自增
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "点赞ID，主键自增")
    private Integer likeId;

    /**
     * 帖子ID，主键
     */
    @TableField("post_id")
    @Schema(description = "帖子ID，主键")
    private Integer postId;

    /**
     * 用户ID，主键
     */
    @TableField("user_id")
    @Schema(description = "用户ID，主键")
    private Integer userId;

    /**
     * 点赞时间
     */
    @TableField("like_time")
    @Schema(description = "点赞时间")
    private Date likeTime;
}